package com.atguigu.gmall.payment.service;

import com.atguigu.gmall.model.enums.PaymentType;
import com.atguigu.gmall.model.payment.PaymentInfo;

import java.util.Map;

public interface PaymentService {
    //生成财务系统需要的"支付表" 和钱相关的表
    PaymentInfo insert(Long orderId, PaymentType paymentType);
    //查询支付表
    PaymentInfo selectPayment(String outTradeNo);
    //支付成功后 更新支付表
    void updatePaymentInfo(Map<String, String> paramMap);
}
